#ifndef MYSORTFILTERPROXYMODEL_H
#define MYSORTFILTERPROXYMODEL_H

#include <QSortFilterProxyModel>
#include <QDebug>

class MySortFilterProxyModel : public QSortFilterProxyModel
{
public:
    explicit MySortFilterProxyModel(QObject *parent = 0);

    void setFilterKeyColumns(const QList<qint32> &filterColumns);
    void addFilterFixedString(qint32 column, const QString &pattern);

    private:
        QMap<qint32, QString> m_columnPatterns;

//protected:
//     bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
};

#endif // MYSORTFILTERPROXYMODEL_H
